home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Unix / CopyPath / README < prev   
Text File  |  1992-01-07  |  4KB  |  105 lines

  1. README for CopyPath (Version 1.3, 1-8-92)
  2.  
  3. One-line description:
  4. Utility to set current directory in a shell from path in Workspace.
  5.  
  6. To NeXT archive maintainer:
  7. This is a source package for NeXT OS 2.x.  Please install
  8. CopyPath_1.3.tar.Z in 2.0-release/source directory or equivalent.
  9. Old versions of CopyPath may be deleted.  Thank you.
  10.  
  11. ************************************************************************ 
  12. Intro:
  13. If you use Terminal or Stuart, you might have wished for an easy way to
  14. set current directory in a shell to that of Workspace.  This was not
  15. possible easily because of type mismatch of the pasteboard data between
  16. Workspace and Terminal (or Stuart).  Now, with CopyPath, this is a
  17. two-keystroke operation: command-/ followed by command-v.
  18.  
  19. [OK, there is a cumbersome way of triple clicking the "path:" field
  20. of Workspace's Inspector, but it won't give you a complete path
  21. for a 'cd' command if the selection is on a directory.]
  22.  
  23. Command-/ creates a command "cd <current_directory_of_Workspace>" in
  24. plain ascii pasteboard.  You simply have to paste this into a shell
  25. command line by command-v.
  26.  
  27. ---
  28. An example use:
  29.   You are in some directory far from root (/) in FileViewer of Workspace,
  30.   and don't want to bother figuring out the full pathname so you can 'cd'
  31.   there in a shell window.  Instead, you press command-/ in the Workspace
  32.   FileViewer (Browser).  This puts the full pathname of your current
  33.   location in that browser in a standard, recognizable form on the
  34.   pasteboard, so all you have to do is switch to the Terminal window
  35.   and press 'Paste' (Command-v).
  36.  
  37. Other applications, such as Edit and Librarian also use the pasteboard format
  38.   to paste the names of the files being referred to.
  39.  
  40.     This app has no GUI.
  41.     CopyPath will continue to run until logout.  It must be killed
  42.     via Tools/Processes panel, or kill <pid> from shell, if you
  43.     want to do so.
  44.  
  45. ---
  46. Installation:
  47.     make
  48.     cp CopyPath.daemon ~/Apps
  49.     [or as root: cp CopyPath.daemon /LocalApps]
  50.  
  51. If you are already using a version of CopyPath, you probably will
  52. have to use the procedure below to force Workspace recognize
  53. new services.
  54. If Menus "Copy Path", "Copy cd Command /", and "Copy pushd Command"
  55. don't appear in the services menu of Workspace Manager:
  56.     [1] Destroy ~/.NeXT/services/.applist and
  57.                 ~/.NeXT/services/.cache
  58.         To do this, use Workspace Manager or from a shell, do:
  59.         rm ~/.NeXT/services/{.applist,.cache}
  60.     [2] Logout Workspace and log back in.
  61.     [3] Launch "/NextApps/Terminal" (or Stuart if you use that).
  62.     [4] Type in Terminal
  63.         make_services
  64.     [5] Logout Workspace and log back in.
  65.     [The above should make the services menu appear correctly.]
  66.  
  67. Usage:
  68.     In Workspace, "Command-/" to generate a cd command on pasteboard.
  69.         [or "Services"->"Copy cd Command" on menu]
  70.     In Terminal (or Stuart) command line, do "Command-v" to paste in
  71.         the command.
  72.     Hit RETURN.
  73.  
  74. Interesting information:
  75.     Apparently, having .daemon at the end of exec filename prevents
  76.     its app icon from being displayed.
  77.     
  78.     [That's a superficial effect; in fact, the entire -MachLaunch
  79.      protocol is circumvented. --EPS]
  80.  
  81.     EPS has discovered TWO useful undocumented keywords that may be
  82.     used in a services specification (to be loaded into __services
  83.     section of the __ICON segment.  CopyPath uses one of them.
  84.  
  85.     Deactivate Requestor: YES  (or NO)
  86.  
  87.     Activate Provider: YES (or NO)
  88.        After a service request is sent to a service provider,
  89.        the service provider becomes the active application if YES.
  90.        Used by Workspace's "Open in Workspace" service.
  91.  
  92.  
  93. ---
  94. No Copyright is claimed.
  95. This program is hereby released into the public domain.
  96.  
  97. 10-30-91, version 1.0  Izumi Ohzawa, izumi@pinoko.berkeley.edu
  98. 11-07-91, Condensed and modified by Daniel Faken, absinthe@u.washington.edu.
  99. 11-12-91, version 1.1  Izumi Ohzawa, some stuff grafted back.
  100. 11-20-91, version 1.2  Eric P. Scott, changed from Application to Listener;
  101.             numerous internal changes
  102. 1-08-92,  version 1.3  Michael Cohen, mcohen@acoustic-srx1.ntt.jp
  103.             patched to allow multiple selection in browser
  104. -----
  105.